<?php

namespace catchAdmin\phone\controller;

use catchAdmin\phone\request\wechatUser\readByShareCodeRequest;
use catchAdmin\phone\request\wechatUserBank\delRequest;
use catchAdmin\phone\request\wechatUserBank\saveRequest;
use catcher\CatchResponse;

class WechatUserBank extends LoginCatchController
{

    private $model = null;


    public function __construct()
    {
        parent::__construct();

        $this->model = (new \catchAdmin\phone\model\WechatUserBank());
    }


    /**
     * 保存
     */
    public function save(saveRequest $request)
    {
        $param = request()->param();

        return CatchResponse::success($this->model->saveData($param));
    }


    /**
     * 删除
     */
    public function del(delRequest $request)
    {
        $param = request()->param();

        return CatchResponse::success($this->model->del($param));
    }


    ##########################################################


    /**
     * 列表
     */
    public function index()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->indexData($param));
    }


    /**
     * 列表
     */
    public function read()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->readData($param));
    }


}
